import request from '@/utils/request'

// 查询学校层次管理列表
export function listSchoolLevel(query) {
  return request({
    url: '/bmxt/schoolLevel/list',
    method: 'get',
    params: query
  })
}
// 查询所有的学校层次管理列表
export function listAllSchoolLevel() {
  return request({
    url: '/bmxt/schoolLevel/listAllSchoolLevel',
    method: 'get'
  })
}

// 查询学校层次管理详细
export function getSchoolLevel(schoolId) {
  return request({
    url: '/bmxt/schoolLevel/' + schoolId,
    method: 'get'
  })
}

// 新增学校层次管理
export function addSchoolLevel(data) {
  return request({
    url: '/bmxt/schoolLevel',
    method: 'post',
    data: data
  })
}

// 修改学校层次管理
export function updateSchoolLevel(data) {
  return request({
    url: '/bmxt/schoolLevel',
    method: 'put',
    data: data
  })
}

// 删除学校层次管理
export function delSchoolLevel(schoolLevelId) {
  return request({
    url: '/bmxt/schoolLevel/' + schoolLevelId,
    method: 'delete'
  })
}
